//
//  MenuShiliaoCollectionViewCell.m
//  Products_B
//
//  Created by lanou on 16/6/7.
//  Copyright © 2016年 朋学友. All rights reserved.
//

#import "MenuShiliaoCollectionViewCell.h"

@implementation MenuShiliaoCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.myView = [[UIView alloc]initWithFrame:CGRectMake(0, 33, 20, 4)];
        self.myView.backgroundColor = [UIColor grayColor];
        self.nameButton = [UIButton buttonWithType:(UIButtonTypeSystem)];
        self.nameButton.frame = CGRectMake(20, 20, kWidth / 5 * 2 - 20, 30);
        self.nameButton.titleLabel.textAlignment = NSTextAlignmentRight;
        self.nameButton.userInteractionEnabled = NO;
        self.nameButton.tintColor = [UIColor blackColor];
//        self.nameButton.backgroundColor = PKCOLOR(200, 45, 96);
        [self.contentView addSubview:_myView];
        
        [self.contentView addSubview:_nameButton];
        
    }
    return self;
}
- (void)setModel:(MenuShiliaoLeftModel *)model{
    _model = model;
    [self.nameButton setTitle:model.text forState:(UIControlStateNormal)];
}
@end
